<template>
  <view class="ss-wallet-menu-wrap ss-flex ss-col-center">
	  <!--@tap="sheep.$router.go('/pages/user/wallet/money')" 跳转暂时关了-->
    <view @tap="sheep.$router.go('/pages/user/wallet/money')" class="menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center">
      <view class="value-box ss-flex ss-col-bottom">
        <view class="value-text ss-line-1">{{ userInfo.integral}}</view>
        <view class="unit-text ss-m-l-6">元</view>
      </view>
      <view class="menu-title ss-m-t-28">查看明细</view>
    </view>
    <!--<view class="menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center">
      <view class="value-box ss-flex ss-col-bottom">
        <view class="value-text">{{ userInfo.vipLevel }}</view>
        <view class="unit-text ss-m-l-6">级</view>
      </view>
      <view class="menu-title ss-m-t-28">VIP等级</view>
    </view>-->
		 <!--关闭积分跳转-->
		 <!--@tap="sheep.$router.go('/pages/user/wallet/score')"-->
     <view
      class="menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center"
      @tap="sheep.$router.go('/pages/user/wallet/score')"
    >
      <view class="value-box ss-flex ss-col-bottom">
        <view class="value-text">{{ userInfo.score }}</view>
        <view class="unit-text ss-m-l-6">积分</view>
      </view>
      <view class="menu-title ss-m-t-28">查看明细</view>
    </view>
    <!-- <view
      class="menu-item ss-flex-1 ss-flex-col ss-row-center ss-col-center"
      @tap="
        sheep.$router.go('/pages/coupon/list', {
          type: 'geted'
        })
      "
    >
      <view class="value-box ss-flex ss-col-bottom">
        <view class="value-text">{{ numData.coupons_num }}</view>
        <view class="unit-text ss-m-l-6">张</view>
      </view>
      <view class="menu-title ss-m-t-28">优惠券</view>
    </view> -->
     <view class="menu-item ss-flex-col ss-row-center ss-col-center menu-wallet" @tap="sheep.$router.go('/pages/pay/recharge')">
      <image class="item-icon" :src="sheep.$url.static('https://img.js.design/assets/img/671f4be217a72048ac76c3fb.png#4415c47657001951c13a4b2fd8fda8b0')" mode="aspectFit"> </image>
      <view class="menu-title ss-m-t-30">立即充值</view>
    </view>
  </view>
</template>

<script setup>
/**
 * 装修组件 - 订单菜单组
 */
import { computed, ref } from 'vue'
import sheep from '@/sheep'

const userInfo = computed(() => sheep.$store('user').userInfo)
const numData = computed(() => sheep.$store('user').numData)
</script>

<style lang="scss" scoped>
.ss-wallet-menu-wrap {

	background-image: url("https://marubuy-oss.oss-cn-beijing.aliyuncs.com/2024/11/038bcffe4c6e7248b8ba71b9ca4aadd03citem_bg.png");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	padding: 10rpx;

  .menu-wallet {
    width: 144rpx;
  }
  .menu-item {
    height: 160rpx;

    .menu-title {
      font-size: 24rpx;
      line-height: 24rpx;
      color: #333333;
    }

    .item-icon {
      width: 44rpx;
      height: 44rpx;
    }

    .value-box {
      height: 50rpx;
      text-align: center;

      .value-text {
        font-size: 28rpx;
        color: #000000;
        line-height: 28rpx;
        vertical-align: text-bottom;
        font-family: OPPOSANS;
      }

      .unit-text {
        font-size: 16rpx;
        color: #000000;
        line-height: 16rpx;
      }
    }
  }
}
</style>
